//
//  MyBidJobDetailTabDetailSectionAssignee.swift
//  GreenDeal
//
//  Created by Moennig Q on 2023/4/18.
//

import UIKit
import SnapKit
class ServiceDetailTabDetailSectionAssignee: CustomBackView {
    
    let installerLabel = ContentLabel(hexStr: "#63666A")
    override func setUpView() {
        let imageView = UIImageView(image: R.image.service_detail_assignee_icon())
        self.addSubview(imageView)
        imageView.snp.makeConstraints { make in
            make.left.equalTo(16)
            make.top.equalTo(20)
            make.bottom.equalTo(-20)
            make.height.width.equalTo(30)
        }
        //
        let installerTtile = ContentLabel(R.font.interSemiBold(size: 16))
        installerTtile.text = "Installer"
        self.addSubview(installerTtile)
        installerTtile.snp.makeConstraints { make in
            make.left.equalTo(imageView.snp.right).offset(12)
            make.centerY.equalToSuperview()
            make.height.width.greaterThanOrEqualTo(0)
        }
        //
        installerLabel.numberOfLines = 0
        installerLabel.textAlignment = .right
        self.addSubview(installerLabel)
        installerLabel.snp.makeConstraints { make in
            make.left.equalTo(installerTtile.snp.right).offset(5)
            make.right.equalTo(-16)
            make.centerY.equalToSuperview()
            make.height.width.greaterThanOrEqualTo(0)
        }
    }
    func setData(_ name: String){
        installerLabel.text = name
    }
}
